<?php get_header() ?>

<?php // Get PHP Function Values
	$sunmaxxid = $_GET["pid"];
	$sunmaxxsku = $_GET["sku"];
?>

	<div id="container">
    
    	<?php include('breadcrumbs.php'); ?>
    
    	<?php get_sidebar() ?>
    
		<div id="content">

		<?php the_post() ?>
        
        <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
			<h2 class="entry-title"><?php the_title() ?></h2>
			<?php include ('socialbuttons.php'); ?>
			<div class="entry-content">
                
        		<?php if (is_page('7379')) { ?>

					<h3>Press Releases Containing <?=$sunmaxxsku?></h3>
					<?php // Get Press Releases For The Product
						query_posts('tag=' .$sunmaxxid . '&showposts=-1&cat=11');
						if (have_posts()) { ?>
							<ul>
								<?php while (have_posts()) : the_post(); ?>
									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
								<?php endwhile; wp_reset_query(); ?>
							</ul>
						<?php } else { ?>
							<p>There Are Currently No Press Releases For This Product.  Please Check Back Shortly.</p>
						<?php } ?>
		
				<?php } elseif (is_page('7381')) { ?>
		
        			<h3>Reference Projects Using <?=$sunmaxxsku?></h3>
					<?php // Get Reference Projects For The Product
						query_posts('tag=' .$sunmaxxid . '&showposts=-1&cat=10');
						if (have_posts()) { ?>
							<ul>
								<?php while (have_posts()) : the_post(); ?>
									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
								<?php endwhile; wp_reset_query(); ?>
							</ul>
						<?php } else { ?>
							<p>There Are Currently No Reference Projects For This Product.  Please Check Back Shortly.</p>
						<?php } ?>
		
				<?php } elseif (is_page('7383')) { ?>
		
        			<h3>Tech Tips &amp; FAQs About <?=$sunmaxxid?></h3>
					<?php // Get Press Releases For The Product
						query_posts('tag=' .$sunmaxxsku . '&showposts=-1&cat=4');
						if (have_posts()) { ?>
							<ul>
								<?php while (have_posts()) : the_post(); ?>
									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
								<?php endwhile; wp_reset_query(); ?>
							</ul>
						<?php } else { ?>
							<p>There Are Currently No FAQs or Tech Tips For This Product.  Please Check Back Shortly.</p>
						<?php } ?>
		
				<?php } ?>
            
        	</div><!-- .entry-content -->
        </div><!-- .post -->

		</div><!-- #content -->
	</div><!-- #container -->

<?php get_footer() ?>